package com.woniuxy.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//启用事务管理器，底层有事务管理相关的自动配置
@EnableTransactionManagement
//basepackage扫描Dao接口所在的包，自动生成所有接口的实现类
@MapperScan("com.woniuxy.demo.mapper")
@SpringBootApplication
public class SrpingbootApplication {

    public static void main(String[] args) {
        SpringApplication.run(SrpingbootApplication.class, args);
    }

}
